package com.lucy.flow.params;

import com.lucy.common.domain.PageParamDTO;
import com.lucy.flow.converter.FlowModelConverter;
import com.lucy.flow.model.FlowModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Convert;

@EqualsAndHashCode(callSuper = true)
@Data
public class FlowWorkQueryParams extends PageParamDTO {
    /**
     * 可以使用 JPA 级联映射
     */
    @ApiModelProperty("流程名称")
    String flowName;

    @ApiModelProperty("流程定义ID")
    String flowDefineId;

    @ApiModelProperty("流程定义编码")
    String flowDefineCode;

    // 一般使用不到
    @ApiModelProperty("父级流程ID")
    String parentId;


    @ApiModelProperty("流程发起者ID")
    String initiator;

    @ApiModelProperty("当前节点ID")
    String currentNodeId;

    @ApiModelProperty(value = "流程实例状态",name = "")
    String flowWorkStatus;


    @ApiModelProperty(value = "实例状态",notes = "1正常 0被挂起 2被锁定")
    Integer status;

    /**
     * 业务类型
     */
    @ApiModelProperty("业务类型")
    String bizType;

    /**
     * 关联的业务ID
     */
    @ApiModelProperty("业务ID")
    String bizId;
}
